<?php
/**
 * User: hjd-yao
 * Date: 2018/11/5
 * Time: 17:03
 */

namespace App\Models\Manage;


use App\Models\BaseModel;

class AdminLogsModel extends BaseModel
{
    protected $table = 'manage_admins_log';

    public static function recordLoginLog($mgr_info)
    {
        self::insert([
            'mgr_id'=>$mgr_info['mgr_id'],
            'mgr_name'=>$mgr_info['mgr_name'],
            'login_ip'=>get_client_ip(1),
            'login_at'=>time()
        ]);
    }
}